package com.sub.mapstruct;

import com.sub.pojo.User;
import com.sub.pojo.dto.UserDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.ReportingPolicy;


@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface UserMapperStruct extends CoverMapStruct<UserDto,User>{

    @Mapping(target = "phoneNumber",source = "phone")
    @Override
    UserDto coverS(User user);

    @Override
    User coverT(UserDto userDto);
}
